import request from '@/utils/request'


// 获取list详情
export function getCatalogueInfo(data) {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/list/API_001',
    method: 'post',
    data:data
  })
}

/** 章节树结构list*/
export function catalogueDict() {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/dict/API_002',
    method: 'post',
  })
}

export function cataloguePidDict(courseId) {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/getPidByType/API_003/'+courseId,
    method: 'post',
  })
}

export function insertCatalogue(data) {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/insert/API_004',
    method: 'post',
    data:data
  })
}

export function deleteCatalogue(id) {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/delete/API_005/'+id,
    method: 'post',
  })
}

export function getCatalogueDetail(id) {
  return request({
    url: 'xingyue/courseCatalogue/courseCatalogue/getById/API_006/'+id,
    method: 'post',
  })
}
